package com.itserver.mapper.art;


import com.itserver.pojo.article.ArticleInfo;
import com.itserver.pojo.article.QueryArticleInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ArticleInfoMapper {
    List<ArticleInfo> list(QueryArticleInfo params);

    void delete(List<Integer> ids);

    void add(ArticleInfo articleInfo);

    void update(ArticleInfo articleInfo);

    ArticleInfo getById(Integer id);

    void publish(List<Integer> ids);
}
